package com.societyGames.persist
{
	import com.societyGames.system.EventObject;
	import flash.events.EventDispatcher;

	public class Persist extends EventDispatcher
	{
		protected var _openFailedEventObject:EventObject;
		protected var _openSucceededEventObject:EventObject;
		protected var _flushFailedEventObject:EventObject;
		protected var _flushSuccededEventObject:EventObject;
		
		public function Persist()
		{
			this._openFailedEventObject = new EventObject(this, "OPEN_FAILED");
			this._openSucceededEventObject = new EventObject(this, "OPEN_SUCCEEDED");
			this._flushFailedEventObject = new EventObject(this, "FLUSH_FAILED");
			this._flushSuccededEventObject = new EventObject(this, "FLUSH_SUCCEEDED");
		}
		
		public function get openFailedEventObject():EventObject
		{
			return this._openFailedEventObject;
		}
		
		public function get openSucceededEventObject():EventObject
		{	
			return this._openSucceededEventObject;
		}
		
		public function get flushFailedEventObject():EventObject
		{
			return this._flushFailedEventObject;
		}
		
		public function get flushSucceededEventObject():EventObject
		{
			return this._flushSuccededEventObject;
		}
	}
}